home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / cpp_libs / cool / ge_cool.lha / GE_COOL2.1 / src / Date_Time / timezone.h < prev    next >
C/C++ Source or Header  |  1992-04-13  |  5KB  |  111 lines

  1. //
  2. // Copyright (C) 1991 Texas Instruments Incorporated.
  3. //
  4. // Permission is granted to any individual or institution to use, copy, modify,
  5. // and distribute this software, provided that this complete copyright and
  6. // permission notice is maintained, intact, in all copies and supporting
  7. // documentation.
  8. //
  9. // Texas Instruments Incorporated provides this software "as is" without
  10. // express or implied warranty.
  11. //
  12. //
  13. // Created: MBN 04/11/89 -- Initial design and implementation
  14. // Updated: DLS 03/22/91 -- New lite version
  15. //
  16. // This file contains an  enum  definition  for  type timezone.  It  specifies
  17. // symbolic  constants to be used as  timezone  types.  Note that C++ does not
  18. // distinguish between an  enum type and  an integer, so function arguments of
  19. // type `timezone' are really just `int' types.
  20.  
  21. #ifndef TIMEZONEH        // If we have not yet defined the timezone type,
  22. #define TIMEZONEH        // Indicate that timezone has been included
  23.  
  24. enum time_zone {            // Time zone specification
  25.   UNKNOWN_TIME_ZONE,            // Unknown time zone
  26.   US_EASTERN,                // Eastern time zone, USA
  27.   US_CENTRAL,                // Central time zone, USA
  28.   US_MOUNTAIN,                // Mountain time zone, USA
  29.   US_PACIFIC,                // Pacific time zone, USA
  30.   US_PACIFIC_NEW,            // Pacific time zone, USA with DST
  31.   US_YUKON,                // Yukon time zone, USA
  32.   US_EAST_INDIANA,            // Estern time zone, USA with no DST
  33.   US_ARIZONA,                // Mountain time zone, USA with no DST
  34.   US_HAWAII,                // Hawaii
  35.   CANADA_NEWFOUNDLAND,            // Newfoundland
  36.   CANADA_ATLANTIC,            // Atlantic time zone, Canada
  37.   CANADA_EASTERN,            // Eastern time zone, Canada
  38.   CANADA_CENTRAL,            // Central time zone, Canada
  39.   CANADA_EAST_SASKATCHEWAN,        // Central time zone, Canada with no DST
  40.   CANADA_MOUNTAIN,            // Mountain time zone, Canada
  41.   CANADA_PACIFIC,            // Pacific time zone, Canada
  42.   CANADA_YUKON,                // Yukon time zone, Canada
  43.   GB_EIRE,                // Great Britain and Eire
  44.   WET,                    // Western Europe time
  45.   ICELAND,                // Iceland
  46.   MET,                    // Middle Europe time
  47.   POLAND,                // Poland
  48.   EET,                    // Eastern Europe time
  49.   TURKEY,                // Turkey
  50.   W_SU,                    // Western Soviet Union
  51.   PRC,                    // People's Republic of China
  52.   KOREA,                // Republic of Korea
  53.   JAPAN,                // Japan
  54.   SINGAPORE,                // Singapore
  55.   HONGKONG,                // Hongkong
  56.   ROC,                    // Republic of China
  57.   AUSTRALIA_TASMANIA,            // Tasmainia, Australia
  58.   AUSTRALIA_QUEENSLAND,            // Queensland, Australia
  59.   AUSTRALIA_NORTH,            // Northern Territory, Australia
  60.   AUSTRALIA_WEST,            // Western Australia
  61.   AUSTRALIA_SOUTH,            // South Australia
  62.   AUSTRALIA_VICTORIA,            // Victoria, Australia
  63.   AUSTRALIA_NSW,            // New South Wales, Australia
  64.   NZ                    // New Zealand
  65. };
  66.  
  67. static const char* tz_table[] = {
  68.   "Unknown Time Zone",            // Unknown time zone
  69.   "US/Eastern",                     // Eastern time zone, USA
  70.   "US/Central",                     // Central time zone, USA
  71.   "US/Mountain",                    // Mountain time zone, USA
  72.   "US/Pacific",                     // Pacific time zone, USA
  73.   "US/Pacific-New",                 // Pacific time zone, USA with DST
  74.   "US/Yukon",                       // Yukon time zone, USA
  75.   "US/East-Indiana",                // Estern time zone, USA with no DST
  76.   "US/Arizona",                     // Mountain time zone, USA with no DST
  77.   "US/Hawaii",                      // Hawaii
  78.   "Canada/Newfoundland",            // Newfoundland
  79.   "Canada/Atlantic",                // Atlantic time zone, Canada
  80.   "Canada/Eastern",                 // Eastern time zone, Canada
  81.   "Canada/Central",                 // Central time zone, Canada
  82.   "Canada/East-Saskatchewan",       // Central time zone, Canada with no DST
  83.   "Canada/Mountain",                // Mountain time zone, Canada
  84.   "Canada/Pacific",                 // Pacific time zone, Canada
  85.   "Canada/Yukon",                   // Yukon time zone, Canada
  86.   "GB-Eire",                        // Great Britain and Eire (GMT)
  87.   "WET",                            // Western Europe time
  88.   "Iceland",                        // Iceland
  89.   "MET",                            // Middle Europe time
  90.   "Poland",                         // Poland
  91.   "EET",                            // Eastern Europe time
  92.   "Turkey",                         // Turkey
  93.   "W-SU",                           // Western Soviet Union
  94.   "PRC",                            // People's Republic of China
  95.   "Korea",                          // Republic of Korea
  96.   "Japan",                          // Japan
  97.   "Singapore",                      // Singapore
  98.   "Hongkong",                       // Hongkong
  99.   "ROC",                            // Republic of China
  100.   "Australia/Tasmania",             // Tasmainia, Australia
  101.   "Australia/Queensland",           // Queensland, Australia
  102.   "Australia/North",                // Northern Territory, Australia
  103.   "Australia/West",                 // Western Australia
  104.   "Australia/South",                // South Australia
  105.   "Australia/Victoria",             // Victoria, Australia
  106.   "Australia/NSW",                  // New South Wales, Australia
  107.   "NZ"                              // New Zealand
  108.   };
  109.  
  110. #endif                        // End #ifdef of TIMEZONEH
  111.